package item;

import inutan.data.Resource.Type;
import inutan.game.business.GameFlowContext;
import inutan.game.business.PropUnwrapStrategy;
import inutan.game.entity.prop.BaseItemInfo;
import org.ricks.ioc.anno.Bean;

import java.util.List;

@Bean
public class VipCardUnwrapStrategy implements PropUnwrapStrategy {
    @Override
    public boolean match(int itemType, int itemId) {
        return itemType == Type.ITEM && itemId == 12345;
    }

    @Override
    public List<BaseItemInfo> unwrap(GameFlowContext context, BaseItemInfo item) {
        return List.of(
                new BaseItemInfo(Type.VIP_EXP, 0, item.getCount()),
                new BaseItemInfo(Type.GOLD, 0, 100)
        );
    }
}
